/* MessageList Styles */
.message-list {
  height: 100%;
  overflow-y: auto;
  position: relative;
}

.message-list-content {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.message-list-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-generating {
  display: flex;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Virtual scrolling optimization for large message lists */
.message-list-virtual {
  height: 100%;
  overflow: hidden;
}

/* Pull to refresh indicator */
.pull-to-refresh-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  color: #1890ff;
  background: linear-gradient(to bottom, transparent, rgba(24, 144, 255, 0.05));
}

/* Scroll to bottom button */
.scroll-to-bottom-button {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
}

.scroll-to-bottom-button:hover {
  transform: scale(1.1);
}

/* Mobile styles */
@media (max-width: 767px) {
  .message-list-content {
    padding: 16px;
  }

  .message-generating {
    padding: 16px;
  }

  .scroll-to-bottom-button {
    width: 56px !important;
    height: 56px !important;
    bottom: 80px !important;
  }
}